﻿/********************************************************************************
** @ Date:2025/08/01
** @ Author: Gaojia
** @ Description:
** @ Version:1.0.0
** @ Fun:
********************************************************************************/
#ifndef CBeltCtrMgr_H
#define CBeltCtrMgr_H
#include <qobject.h>
#include <QThread>
#include "CBeltDataBase.h"
#include "CVlcCtrMange.h"
class CBeltCtrMgr :
	public QObject
{
	Q_OBJECT
public:
	CBeltCtrMgr(CBeltDataBase *pBeltData);
	~CBeltCtrMgr();
	void threadStart();
	void threadStop();
	bool ctrDevice(SCtrInfo& stCtrInfo);
private:
	bool ctrDev(SCtrInfo& stCtrInfo);
private:
	bool      m_bhread;         //线程状态
	QThread  *m_pThread;        //工作线程
	QMutex   *m_pMutex;
	CBeltDataBase *m_pBeltData;
	CVlcCtrMange *m_pVlcCtrMange;
	QVector<SCtrInfo>m_vecCtrQueue;
private slots:
	void slot_threadWork();
};

#endif